home *** CD-ROM | disk | FTP | other *** search
- IEG2MIPS(3F) Last changed: 2-11-99
-
-
- NNAAMMEE
- IIEEGG22MMIIPPSS, MMIIPPSS22IIEEGG - Converts generic IEEE data to MIPS IEEE data and
- vice versa
-
- SSYYNNOOPPSSIISS
- IINNTTEEGGEERR IIEEGG22MMIIPPSS, MMIIPPSS22IIEEGG
-
- _i_e_r_r == IIEEGG22MMIIPPSS((_t_y_p_e,, _n_u_m,, _f_o_r_e_i_g_n,, _b_i_t_o_f_f,, _n_a_t_i_v_e,, _s_t_r_i_d_e,, _n_a_t_l_e_n,,
- _f_o_r_l_e_n[[,,_n_a_t_i_v_e_c_h]]))
-
- _i_e_r_r == MMIIPPSS22IIEEGG((_t_y_p_e,, _n_u_m,, _f_o_r_e_i_g_n,, _b_i_t_o_f_f,, _n_a_t_i_v_e,, _s_t_r_i_d_e,, _n_a_t_l_e_n,,
- _f_o_r_l_e_n[[,,_n_a_t_i_v_e_c_h]]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- IIEEGG22MMIIPPSS converts generic IEEE data types (abbreviated as "IEEE" in
- the following text) to data for systems that use MIPS IEEE data types
- (abbreviated as "MIPS" in the following text).
-
- MMIIPPSS22IIEEGG converts MIPS IEEE data types to IEEE data types.
-
- When using the MIPSpro 7 Fortran 90 compiler on IRIX systems, all
- arguments must be of default kind unless documented otherwise. On
- IRIX systems, the default kind is KKIINNDD==44.
-
- The following is a list of valid parameters for this routine.
-
- _t_y_p_e An integer giving the data type code, as follows.
-
- CCooddee DDeessccrriippttiioonn
-
- 1 Typeless (no translation; _n_a_t_l_e_n and _f_o_r_l_e_n must be
- equal and must be 8-, 16-, 32-, 64-, 128-, or
- 256-bits.)
-
- 2 Integer
- IEEE: 64-, 32-, 16, or 8-bit twos complement
- MIPS: 64-, 32-, 16, or 8-bit twos complement
-
- 3 Real
- IEEE: 32-, 64-, or 128-bit IEEE floating-point
- MIPS: 32-, 64-, or 128-bit MIPS IEEE floating-point
-
- 4 Complex
- IEEE: 2 x 32-, 64-, or 128-bit IEEE floating-point
- MIPS: 2 x 32-, 64-, or 128-bit MIPS IEEE
- floating-point
-
- 5 Logical
- IEEE: 64-, 32-, 16-, or 8-bit zero/nonzero logical
- MIPS: 64-, 32-, 16-, or 8-bit zero/nonzero logical
-
- 6 Character
- ASCII to ASCII; no translation.
-
- The _n_a_t_l_e_n and _f_o_r_l_e_n parameters select the size of the data.
-
- _n_u_m Number of data items to convert. Type integer variable,
- expression, or constant.
-
- _f_o_r_e_i_g_n Variable or array of any noncharacter type or length to
- contain data which is not native to the current system.
-
- _b_i_t_o_f_f Integer variable, expression, or constant giving the bit
- offset within the _f_o_r_e_i_g_n data variable or array to begin the
- conversion. _b_i_t_o_f_f must be at least 0 and no more than 63.
-
- _n_a_t_i_v_e Variable or array of any noncharacter type or length to
- contain data which is native to the current system. This
- variable or array should be of a type that corresponds to
- _t_y_p_e. If _t_y_p_e=6, use a dummy integer variable and the
- _n_a_t_i_v_e_c_h parameter (see description of _n_a_t_i_v_e_c_h).
-
- _s_t_r_i_d_e Integer variable or constant giving the memory increment for
- loading or storing data to the native array. For two and
- four-word items (complex and double-precision), this is a
- stride of items, not of words. For typeless, stride is always
- in words.
-
- This parameter is ignored for CHARACTER (_t_y_p_e = 6). Data in
- the foreign array is loaded or stored in a continuous bit
- stream regardless of this parameter.
-
- _n_a_t_l_e_n Native storage length of an item, in bits. For COMPLEX data,
- _n_a_t_l_e_n counts the total size of the real and imaginary
- component.
-
- _f_o_r_l_e_n Foreign storage length of an item, in bits. For COMPLEX data,
- _f_o_r_l_e_n counts the total size of the real and imaginary
- components.
-
- _n_a_t_i_v_e_c_h
- Optional character parameter specifying _n_a_t_i_v_e target variable
- if it is of type character (_t_y_p_e = 6). This parameter is
- ignored if _t_y_p_e is not character.
-
- CCAAUUTTIIOONN
- The _f_o_r_e_i_g_n and _n_a_t_i_v_e variables should not be associated (aliased to
- each other).
-
- RREETTUURRNN VVAALLUUEESS
- The returned function values are as follows:
-
- <<00 Parameter error; no translation performed.
-
- --11 Parameter error; too few arguments or _n_a_t_i_v_e_c_h not specified with
- _t_y_p_e = 6. This error is not returned on IRIX systems.
-
- --22 Parameter error; invalid _t_y_p_e.
-
- --33 Parameter error; invalid _n_u_m.
-
- --44 Parameter error; invalid _b_i_t_o_f_f.
-
- --55 Parameter error; invalid _n_a_t_l_e_n.
-
- --66 Parameter error; invalid _f_o_r_l_e_n.
-
- --77 Unable to mmaalllloocc() memory for translation.
-
- --88 Combination of _n_a_t_l_e_n and _f_o_r_l_e_n is invalid.
-
- --99 _n_a_t_i_v_e must be 64-bit word-aligned.
-
- --1100 _f_o_r_e_i_g_n must be 64-bit word-aligned.
-
- 00 Translation complete; no errors.
-
- >>00 Translation complete; return value is the number of integer or
- real values that completely overflowed during conversion.
- Overflows and NaNs which exist before conversion are not
- included.
-
- SSEEEE AALLSSOO
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-